<template>
  <div>
    <van-sticky>
      <div class="b1">
        <van-icon @click="show = true" name="orders-o" size="25px" class="t1" />
        <van-popup
          v-model="show"
          position="left"
          :style="{ width: '90%', height: '100%' }"
        >
          <div class="tc1">
            <p>
              <van-icon class="tc1t" name="manager-o" /><span @click="dl"
                >登陆或注册</span
              >
            </p>
            <van-collapse v-model="activeNames">
              <van-collapse-item title="可可西里" name="1">
                <span @click="scenery()">风景 & 山水</span>
                <br />
                体验 & 动植
                <br />
                人文 & 英雄
              </van-collapse-item>
              <van-collapse-item title="计划您的旅程" name="2">
                <span @click="ts()">尽情探索</span>
                <br />
                <span @click="lx()">旅行计划</span>
                <br />
                <span @click="fx()">推荐分享</span>
                <br />
                <span @click="gu()">旅行指南</span>
              </van-collapse-item>
              <van-collapse-item title="旅游必备信息" name="3">
                尽情探索
                <br />
                <span @click="gykkxl()">关于可可西里</span>
                <br />
                安全出行建议
                <br />
                旅行条例
              </van-collapse-item>
            </van-collapse>
            <button @click="sq">申请志愿者<van-icon name="arrow" /></button>
            <hr />
            <div class="tc1_01">
              <p><van-icon name="like-o" />关注我们</p>
            </div>
            <div class="tc1_02">
              <p><van-icon name="phone-circle-o" />开始对话</p>
            </div>
            <hr />
            <div class="tc1_2">
              <p>呼叫中心</p>
              <span>xxxxxx</span>
              <a href="#">点击这里</a>
            </div>
          </div>
        </van-popup>
        <van-icon name="user-circle-o" size="25px" class="t2" @click="gr" />
        <van-icon name="guide-o" size="25px" class="t3" @click="zn" />
      </div>
    </van-sticky>
  </div>
</template>

<script>
import Vue from "vue";
import { Image as VanImage } from "vant";
Vue.use(VanImage);

export default {
  data() {
    return {
      currentPage: 1,
      activeNames: ["1"],
      show: false,
    };
  },
  methods: {
    showPopup() {
      this.show = true;
    },
    gr() {
      this.$router.push({
        path: "/personal",
      });
    },
    zn() {
      this.$router.push({
        path: "/map",
      });
    },
    sq() {
      this.$router.push({
        path: "/apply",
      });
    },
    dl() {
      this.$router.push({
        path: "/sign",
      });
    },
		ts(){
					this.$router.push({
						path:'/explore'
					})
				},
				lx(){
					this.$router.push({
						path:'/travel'
					})
				},
				gu(){
					this.$router.push({
						path:'/guide'
					})
				},
				fx(){
					this.$router.push({
						path:'/share'
					})
				},
    gykkxl() {
      this.$router.push("/aboutkkxl");
    },
    scenery() {
      this.$router.push("/shanshui");
    },
  },
};
</script>

<style lang="scss" scoped>
#div {
  position: relative;
}
.b1 {
  position: relative;
  height: 50px;
  width: 390px;
  background-color: #fff;
}
.t1 {
  display: flex;
  // background-color: #39a9ed;
  width: 30px;
  position: absolute;
  margin-left: 20px;
  // z-index: 99;
  margin-top: 15px;
  color: #000;
}
.t2 {
  width: 30px;
  display: flex;
  // background-color: #39a9ed;
  float: right;
  margin-right: 20px;
  // z-index: 99;
  margin-top: 15px;
  color: #000;
}
.t3 {
  width: 30px;
  display: flex;
  // background-color: #39a9ed;
  float: right;
  // z-index: 99;
  margin-top: 15px;
  color: #000;
}
.tc1 {
  > button {
    background-color: #cc6600;
    border-color: transparent;
    color: #fff;
    width: 300px;
    height: 30px;
    margin: 20px;
    border-radius: 20px;
  }
  > hr {
    width: 300px;
    background-color: rgb(245, 246, 247);
    height: 1px;
    border: none;
  }
  .tc1t {
    background-color: #fff;
    padding: 7px;
    border-radius: 50%;
    // float: left;
    margin-right: 5px;
    color: #cc6600;
  }
  p {
    color: #fff;
    background-color: #cc6600;
    padding: 50px;
    margin: 0;
    // float: left;
  }
  .tc1_01 {
    width: 300px;
    margin: 20px;
    > p {
      padding: 20px;
    }
  }
  .tc1_02 {
    width: 300px;
    margin: 20px;
    > p {
      padding: 20px;
    }
  }
  .tc1_2 {
    > p {
      padding: 0;
      background-color: #fff;
      color: #bbb;
      font-size: 12px;
      float: left;
      margin-left: 25px;
    }
    > span {
      display: block;
      float: left;
      margin-top: 20px;
      margin-left: -50px;
    }
    > a {
      color: #000;
      float: left;
      margin-top: 40px;
      margin-left: -50px;
    }
  }
}
</style>
